<?php
/**
 * Created by PhpStorm.
 * User: wodrow
 * Date: 4/5/17
 * Time: 2:16 PM
 */

namespace common\models;


class ApiRoute extends \common\models\base\ApiRoute
{
	const TYPE_PERSIONAL = 10; // 个人
	const TYPE_ENTERPRISE = 11; // 企业
	
	public static function getType()
	{
		return [
			self::TYPE_PERSIONAL=>'个人',
			self::TYPE_ENTERPRISE=>'企业',
		];
	}

    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'route' => '路由',
            'type' => '类型',
            'name' => '路由名',
            'created_at' => \Yii::t('app', 'Created At'),
            'updated_at' => \Yii::t('app', 'Updated At'),
        ];
    }
}